/**
 * Witontek.com.
 * Copyright (c) 2012-2018 All Rights Reserved.
 */
package test.closure;

/**
 * 
 * @author Long
 * @version $Id: Person.java, v 0.1 2018年4月20日 下午5:27:13  xiaolong.ma  Exp $
 */
public class Person {

    /**
     * 
     * @param args
     */
    public static void main(String[] args) {
        //买一箱牛奶  
        Milk m = new Milk();

        IActive haveMeals = m.HaveMeals();

        //没事喝一瓶  
        haveMeals.drink();
        //有事喝一瓶  
        haveMeals.drink();

        //看看还剩多少？  
        m.currentNum();

        m = null;

        haveMeals.drink();
    }

}
